ioreq: fix hvm_all_ioreq_servers_add_vcpu fail path cleanup
authorRoger Pau Monné <roger.pau@citrix.com>
Mon, 23 Sep 2019 12:42:13 +0000 (14:42 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 23 Sep 2019 12:42:13 +0000 (14:42 +0200)
commitb2220461a3081d23ed9c36dc053161d58655da97
treec173aa5760f6df64fdfd35e5e3d5d7afa984886d
parent37ccdfd545b3441d6a0e2e522dbad5954e474f15
ioreq: fix hvm_all_ioreq_servers_add_vcpu fail path cleanup

The loop in FOR_EACH_IOREQ_SERVER is backwards hence the cleanup on
failure needs to be done forwards.

Fixes: 97a5a3e30161 ('x86/hvm/ioreq: maintain an array of ioreq servers rather than a list')
Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul.durrant@citrix.com>
master commit: 215f2576b0ac1bc18f3ff74e34f0d8379bda9040
master date: 2019-09-10 16:32:47 +0200
xen/arch/x86/hvm/ioreq.c